/*
 * XML Type:  WireTransferResponseMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.WireTransferResponseMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML WireTransferResponseMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class WireTransferResponseMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractResponseMessageSetImpl implements net.ofx.types.x2003.x04.WireTransferResponseMessageSetV1
{
    
    public WireTransferResponseMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName WIRETRNRS$0 = 
        new javax.xml.namespace.QName("", "WIRETRNRS");
    private static final javax.xml.namespace.QName WIRESYNCRS$2 = 
        new javax.xml.namespace.QName("", "WIRESYNCRS");
    
    
    /**
     * Gets array of all "WIRETRNRS" elements
     */
    public net.ofx.types.x2003.x04.WireTransactionResponse[] getWIRETRNRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(WIRETRNRS$0, targetList);
            net.ofx.types.x2003.x04.WireTransactionResponse[] result = new net.ofx.types.x2003.x04.WireTransactionResponse[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "WIRETRNRS" element
     */
    public net.ofx.types.x2003.x04.WireTransactionResponse getWIRETRNRSArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.WireTransactionResponse)get_store().find_element_user(WIRETRNRS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "WIRETRNRS" element
     */
    public int sizeOfWIRETRNRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIRETRNRS$0);
        }
    }
    
    /**
     * Sets array of all "WIRETRNRS" element
     */
    public void setWIRETRNRSArray(net.ofx.types.x2003.x04.WireTransactionResponse[] wiretrnrsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(wiretrnrsArray, WIRETRNRS$0);
        }
    }
    
    /**
     * Sets ith "WIRETRNRS" element
     */
    public void setWIRETRNRSArray(int i, net.ofx.types.x2003.x04.WireTransactionResponse wiretrnrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.WireTransactionResponse)get_store().find_element_user(WIRETRNRS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(wiretrnrs);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "WIRETRNRS" element
     */
    public net.ofx.types.x2003.x04.WireTransactionResponse insertNewWIRETRNRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.WireTransactionResponse)get_store().insert_element_user(WIRETRNRS$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "WIRETRNRS" element
     */
    public net.ofx.types.x2003.x04.WireTransactionResponse addNewWIRETRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.WireTransactionResponse)get_store().add_element_user(WIRETRNRS$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "WIRETRNRS" element
     */
    public void removeWIRETRNRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIRETRNRS$0, i);
        }
    }
    
    /**
     * Gets array of all "WIRESYNCRS" elements
     */
    public net.ofx.types.x2003.x04.WireSyncResponse[] getWIRESYNCRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(WIRESYNCRS$2, targetList);
            net.ofx.types.x2003.x04.WireSyncResponse[] result = new net.ofx.types.x2003.x04.WireSyncResponse[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "WIRESYNCRS" element
     */
    public net.ofx.types.x2003.x04.WireSyncResponse getWIRESYNCRSArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.WireSyncResponse)get_store().find_element_user(WIRESYNCRS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "WIRESYNCRS" element
     */
    public int sizeOfWIRESYNCRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIRESYNCRS$2);
        }
    }
    
    /**
     * Sets array of all "WIRESYNCRS" element
     */
    public void setWIRESYNCRSArray(net.ofx.types.x2003.x04.WireSyncResponse[] wiresyncrsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(wiresyncrsArray, WIRESYNCRS$2);
        }
    }
    
    /**
     * Sets ith "WIRESYNCRS" element
     */
    public void setWIRESYNCRSArray(int i, net.ofx.types.x2003.x04.WireSyncResponse wiresyncrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.WireSyncResponse)get_store().find_element_user(WIRESYNCRS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(wiresyncrs);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "WIRESYNCRS" element
     */
    public net.ofx.types.x2003.x04.WireSyncResponse insertNewWIRESYNCRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.WireSyncResponse)get_store().insert_element_user(WIRESYNCRS$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "WIRESYNCRS" element
     */
    public net.ofx.types.x2003.x04.WireSyncResponse addNewWIRESYNCRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.WireSyncResponse)get_store().add_element_user(WIRESYNCRS$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "WIRESYNCRS" element
     */
    public void removeWIRESYNCRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIRESYNCRS$2, i);
        }
    }
}
